/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.republicagroup.gestion.config;

import org.apache.log4j.Logger;
import java.io.InputStream;
import java.util.Properties;

/**
 *
 * @author DIEGOALV
 */

public class RGroupAppConfig {
    
    private static final String CONFIG_FILE = "RGroupAppConfig.properties";
    private static Logger log = Logger.getLogger(RGroupAppConfig.class);
    
    public static String getProperty(String key){
            String errorMessage = null;
            Properties properties = new Properties();
            InputStream in = RGroupAppConfig.class.getResourceAsStream(CONFIG_FILE);
            try {
                properties.load(in);
                errorMessage = properties.getProperty(key);
            } catch (Exception ex) {
                log.info("Error al cargar RGroupAppConfig.properties");
                log.error(ex.getMessage(),ex);             
            }
        
            return errorMessage;
    }
    
    
}
